<?php
namespace   app\admin\validate;
use think\Validate;
class Game extends Validate{
    protected $rule =[
            'title' => 'require|max:25',
//            'url'=>'require'

    ];

    protected $message =[
        'title.require' => 'game标题不能为空',
        'title.max' => '文件标题长度不得大于25',
//        'url.file'=>'上传文件不符合'
    ];

    protected $scene=[
        'add'=>['title'],
        'edit'=>['title']
    ];
}